body, html {
    height: 100%;
    opacity: 0.9;
    margin: 0;
    background-image: url(./背景8.jpg);
    background-size: 100%;
    font-family: Arial, Helvetica, sans-serif
    
    
}

.todo-app {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

h1 {
    text-align: center;
    color: #333;
}

#todo-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif
}

#add-todo, #clear-todos {
    padding: 10px 20px;
    border: none;
    background: #d63209;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

#add-todo:hover, #clear-todos:hover {
    background: #3f51b5;
}

#todo-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.todo-item {
    background: #f9f9f9;
    margin-bottom: 8px;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.todo-item:hover {
    background: #e9e9e9;
}

.delete-btn {
    background: none;
    border: none;
    color: #c0392b;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.delete-btn:hover {
    color: #e74c3c;
}

.completed {
    text-decoration: line-through;
    opacity: 0.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.todo-item {
    animation: slideIn 0.5s ease forwards;
}